package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchReportQueryExportRecordsMapper;
import com.ruoyi.system.domain.DispatchReportQueryExportRecords;
import com.ruoyi.system.service.IDispatchReportQueryExportRecordsService;

/**
 * 报查询与导出记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchReportQueryExportRecordsServiceImpl implements IDispatchReportQueryExportRecordsService 
{
    @Autowired
    private DispatchReportQueryExportRecordsMapper dispatchReportQueryExportRecordsMapper;

    /**
     * 查询报查询与导出记录
     * 
     * @param reportQueryExportRecordsId 报查询与导出记录主键
     * @return 报查询与导出记录
     */
    @Override
    public DispatchReportQueryExportRecords selectDispatchReportQueryExportRecordsByReportQueryExportRecordsId(Long reportQueryExportRecordsId)
    {
        return dispatchReportQueryExportRecordsMapper.selectDispatchReportQueryExportRecordsByReportQueryExportRecordsId(reportQueryExportRecordsId);
    }

    /**
     * 查询报查询与导出记录列表
     * 
     * @param dispatchReportQueryExportRecords 报查询与导出记录
     * @return 报查询与导出记录
     */
    @Override
    public List<DispatchReportQueryExportRecords> selectDispatchReportQueryExportRecordsList(DispatchReportQueryExportRecords dispatchReportQueryExportRecords)
    {
        return dispatchReportQueryExportRecordsMapper.selectDispatchReportQueryExportRecordsList(dispatchReportQueryExportRecords);
    }

    /**
     * 新增报查询与导出记录
     * 
     * @param dispatchReportQueryExportRecords 报查询与导出记录
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchReportQueryExportRecords(DispatchReportQueryExportRecords dispatchReportQueryExportRecords)
    {
        return dispatchReportQueryExportRecordsMapper.insertDispatchReportQueryExportRecords(dispatchReportQueryExportRecords);
    }

    /**
     * 修改报查询与导出记录
     * 
     * @param dispatchReportQueryExportRecords 报查询与导出记录
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchReportQueryExportRecords(DispatchReportQueryExportRecords dispatchReportQueryExportRecords)
    {
        return dispatchReportQueryExportRecordsMapper.updateDispatchReportQueryExportRecords(dispatchReportQueryExportRecords);
    }

    /**
     * 批量删除报查询与导出记录
     * 
     * @param reportQueryExportRecordsIds 需要删除的报查询与导出记录主键
     * @return 结果
     */
    @Override
    public int deleteDispatchReportQueryExportRecordsByReportQueryExportRecordsIds(Long[] reportQueryExportRecordsIds)
    {
        return dispatchReportQueryExportRecordsMapper.deleteDispatchReportQueryExportRecordsByReportQueryExportRecordsIds(reportQueryExportRecordsIds);
    }

    /**
     * 删除报查询与导出记录信息
     * 
     * @param reportQueryExportRecordsId 报查询与导出记录主键
     * @return 结果
     */
    @Override
    public int deleteDispatchReportQueryExportRecordsByReportQueryExportRecordsId(Long reportQueryExportRecordsId)
    {
        return dispatchReportQueryExportRecordsMapper.deleteDispatchReportQueryExportRecordsByReportQueryExportRecordsId(reportQueryExportRecordsId);
    }
}
